const express = require('express');
const app = express();
//导入自己封装的中间件模块
const bodyCustom = require('./11.body-Parser-custom.js');
app.use(bodyCustom);
app.post('/user', (req, res) => {
        res.send(req.body);
    })
    //启动服务器
app.listen(80, function() {
    console.log('http://127.0.0.1');
})